package org.example.cet.demos.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.cet.demos.domain.dto.AudioDto;
import org.example.cet.demos.domain.po.Audio;

import java.util.List;


@Mapper
public interface AudioMapper extends BaseMapper<Audio> {
    @Select("select count(*) from cet.listeningaudio")
    public Long count();

    public List<AudioDto> getList(@Param("start") Integer start, @Param("pageSize") Integer pageSize);


    List<AudioDto> findByTitle(String audioTitle);
}
